package cn.dust.design.pattern.structural.decorator.Decorator;

public class WhiteBorderDecorator extends ComponentDecorator{
    public WhiteBorderDecorator(Component component) {
        super(component);
    }

    @Override
    public void display() {
        this.setWhiteBorder();
        super.display();
    }

    private void setWhiteBorder() {
        System.out.println("增加白色边框");
    }

}
